# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class TaogubaJsonItem(scrapy.Item):

    id = scrapy.Field() # 合并的时候做标记
    quoted_url = scrapy.Field() # 引用跟帖
    quoted_name = scrapy.Field() # 引用姓名
    quoted_text = scrapy.Field() # 引用内容
    """
    1. 没有 quoted_name 不拼接 quoted 内容
    2. 没有 quoted_reply 直接拼接 poster 和 quoted 内容
    3. 有 quoted_reply 重新请求，再拼接
    """
    poster_name = scrapy.Field() # 留言人
    post_text = scrapy.Field() # 留言内容
    post_date = scrapy.Field() # 留言日期
    post_weekday = scrapy.Field() # 留言星期

class TaogubaExcleItem(scrapy.Item):

    id = scrapy.Field() # 合并的时候做标记
    quoted_text = scrapy.Field()  # 引用内容
